
quit_prompt = ["quit", "QUIT", "exit", "q", "Q"]

print("test1---->")

prompt = "\nWhich type of pizza topping do you need? \n"
prompt += "Let me know if you'd like further assistance! \n"
prompt += "pelese enter:"

active = True
pizza_menu = []

while(active):
    menu = input(prompt)
    if menu in quit_prompt:
        break
    else:
        print("Your menu is " + menu + ".")
        pizza_menu.append(menu)

print("\nThey are:")
for pizza_topping in pizza_menu:
    print(pizza_topping)

print("\ntest2---->")
age_prompt = "Please tell me your age:"

free_list = range(0,3)
ten_list = range(3,13)
fiften_list = range(13, 100)
price_dic = {
                "free_list" : "0",
                "ten_list" : "10",
                "fiften_list" : "15"}

active = True
while(active):
    age = input(age_prompt)
    if age in quit_prompt:
        break
    
    if age.isdigit():
        age = int(age)
        if age in free_list:
            print("The price is " + price_dic["free_list"] + "$")
        elif age in ten_list:
            print("The price is " + price_dic["ten_list"] + "$")
        elif age in fiften_list:
            print("The price is " + price_dic["fiften_list"] + "$")
        
        active = False
    else:
        print("Please enter a valid number or type 'exit' to quit.")

print("\ntest3---->")
sandwich_orders = ["Ham and Cheese", "blt", "Chicken", "Egg Salad"]
finished_sandwiches = []

while sandwich_orders:
    cur_sand = sandwich_orders.pop()
    finished_sandwiches.append(cur_sand)
print("all sandwiches are finished! they are:")
for fin_sand in finished_sandwiches:
    print(fin_sand.title())

print("\ntest4---->")
sand_prompt = "The pastrami sand is sold out"
sandwich_orders = ["Ham and Cheese", "pastrami", "blt", "Chicken", "pastrami", "Egg Salad", "pastrami"]
finished_sandwiches = []

print(sand_prompt)
while "pastrami" in sandwich_orders:
    sandwich_orders.remove("pastrami")

print(sandwich_orders)


print("\ntest5---->")
active = True
vist_prompt = "\nIf you could visit one place in the world,where would you go?\n"
user_places = {}

while(active):
    name = input("\nWhat your name?\n")
    if name in quit_prompt:
        break
    
    places = input(vist_prompt)
    if places in quit_prompt:
        break
    
    user_places[name] = places
    if len(user_places) == 100:
        active = False
        print("not have space save!!")

for k_name, v_places in user_places.items():
    print(k_name + ": " + v_places)






